<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>

</body>
<script>
	// * from：把伪数组转换成数组(可以使用数组的方法)
	// let arr = [1,2,3];
	// let arr2 = Array.from(arr);
	// console.log(arr2 === arr);
	
	// * of：将一组数字转换成数组 弥补Array的不足
	// let arr = Array.of(1,2,3,4);
	// console.log(arr);
	
	// let arr = Array(1,2,3,4);
	// console.log(arr);
	
	// let arr = Array(5);
	// console.log(arr);
	
	// let arr = Array(5,6);
	// console.log(arr);// [5,6]
	
	
	// let arr = [1,2,3,4];
	// console.log(arr.includes(3));// true
	
	let arr = [{
		userName:"zhangsan"
	},{
		userName:"lisi"
	},{
		userName:"wangwu"
	}];
	console.log(arr.find(v=>v.userName === "lisi"))
	console.log(arr.some(v=>v.userName === "lisi"))
</script>
</html>